import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-04
 * Time: 16:47
 */
public class Test3 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("d:/test1.txt");
        boolean ret = file.createNewFile();
        System.out.println(ret);
        file.deleteOnExit();
        //让程序等待10秒再结束
        Thread.sleep(30000);
    }
}
